<template>
  <div class="survey">
    <div class="part">
      <div class="partTitle">职位描述（基础）</div>
      <div class="innerArea">
        <div class="innerTitle">岗位职责</div>
        <div class="describe" v-html="jobDetail.obligation"></div>
      </div>
      <div class="innerArea">
        <div class="innerTitle">岗位要求</div>
        <div class="describe" v-html="jobDetail.demand"></div>
      </div>
    </div>
    <div class="part" v-show="jobDetail.promote && jobDetail.promote !== ''">
      <div class="partTitle">晋升通道</div>
      <div class="describe">{{ jobDetail.promote ? jobDetail.promote : '' }}</div>
    </div>
    <div class="part" v-show="jobDetail.status && jobDetail.status !== ''">
      <div class="partTitle">执业资格</div>
      <div class="describe">{{ jobDetail.status ? jobDetail.status : '' }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Survey',
  props: {
    jobDetail: Object
  }
}
</script>

<style lang="less" scoped>
  .survey {
    .part {
      margin-bottom: 0.4rem;
      border-bottom: 1px solid #E5E8ED;
      .partTitle {
        color: #222;
        font-size: 0.3rem;
        line-height: 0.44rem;
        font-weight: bold;
        margin-bottom: 0.4rem;
      }
      .innerArea {
        margin-bottom: 0.4rem;
        .innerTitle {
          color: #C7C7C7;
          font-size: 0.28rem;
          line-height: 0.39rem;
          font-weight: bold;
          margin-bottom: 0.16rem;
        }
        .describe {
          color: #222;
          font-size: 0.28rem;
          line-height: 0.4rem;
        }
      }
      .describe {
        color: #222;
        font-size: 0.28rem;
        line-height: 0.4rem;
        margin-bottom: 0.4rem;
      }
    }
    .part:last-child {
      border: none;
    }
  }
</style>
